package cn.gzmli.dtt.common.service.log;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @Descript 日志执行器
 * @Author xsx
 * @Date 2018/3/25
 */
public class LogExecutor {
    // 创建线程池
    private static ExecutorService executor = Executors.newCachedThreadPool();

    private LogExecutor(){
        throw new InstantiationError();
    }

    public static void execute(Runnable target) throws InterruptedException {
        executor.execute(target);
    }
}
